package com.ljp.chat.support.enhancement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljp.chat.entity.Result;
import com.ljp.chat.entity.pojo.BaseEntity;

@SuppressWarnings("unused")
public class RestSupportAdapter<E extends BaseEntity, S extends IService<E>>
        extends AbstractRestSupport<Long, E, S> implements RestCrudSupport<E, Long> {

    public Result<Object> updateById(Long id, E entity) {
        entity.setId(id);
        return super.updateById(entity);
    }
}
